import './assets/main.css'

import { createApp } from 'vue'
import { createPinia } from 'pinia'

import App from './App.vue'
import router from './router'

import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
//图标库
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
// import locale from 'element-ui/lib/locale/lang/zh-CN'

import '@antv/x6-vue-shape'



// import '@/styles/index.less';
// import ElementTiptapPlugin from 'element-tiptap';
// // import ElementTiptap's styles
// import 'element-tiptap/lib/style.css';
// import ElementTiptapPlugin from 'element-tiptap-vue3-fixed';
// import ElementTiptap's styles
// import 'element-tiptap-vue3-fixed/lib/style.css';

// import 'reset-css'
// import ElementTiptapPlugin from 'element-tiptap-vue3-fixed';
// import 'element-tiptap-vue3-fixed/lib/style.css';

import ElementTiptapPlugin from './index'
const app = createApp(App)

// pinia和axios的综合使用 https://developer.aliyun.com/article/1058104
app.use(createPinia())
app.use(router)
app.use(ElementPlus, {
  locale: zhCn,
})
app.use(ElementTiptapPlugin);

//引入图标库
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
  }
// app.use(ElementTiptapPlugin);

import Antd from 'ant-design-vue';
import 'ant-design-vue/dist/reset.css';
import './styles/super-editor.scss'
app.use(Antd);

// import EmojiPicker from 'vue3-emoji-picker'
// import 'vue3-emoji-picker/css'

// app.use(EmojiPicker)

app.mount('#app')
